package com.vd.wmt.model;

import java.math.BigDecimal;
import java.util.Date;

import com.vd.wmt.parse.PropParse;
/**
 * @desc 工资明细
 * @author tudongyun
 *
 */
public class WageDetail {
	private int index;
	private Date YearMonth;
	
	public Date getYearMonth() {
		//return new SimpleDateFormat("yyyy-MM").format(YearMonth);
		return YearMonth;
	}
	public void setYearMonth(Date yearMonth) {
		YearMonth = yearMonth;
	}
	private static final String EMAIL_SUFFIX=PropParse.getInstance().getValue("vd.mail_suffix");
	private String name;
	private String email;	
	private BigDecimal workDays;
	private String comment;
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}
	public BigDecimal getWorkDays() {
		return workDays;
	}
	public void setWorkDays(BigDecimal workDays) {
		this.workDays = workDays;
	}
	/**
	 * 基本工资
	 */
	private BigDecimal basicWage;
	/**
	 * 基本奖金
	 */
	private BigDecimal basicBonus;
	/**
	 * 外派补贴
	 */
	private BigDecimal outSubsidy;
	/**
	 * 中餐补贴
	 */
	private BigDecimal lunchSubsidy;
	/**
	 * 晚餐补贴
	 */
	private BigDecimal dinnerSubsidy;
	/**
	 * 交通补贴
	 */
	private BigDecimal trafficSubsidy;
	/**
	 * 住房补贴
	 */
	private BigDecimal houseSubsidy;
	/**
	 * 出差补贴
	 */
	private BigDecimal travelSubsidy;
	/**
	 * 管理补贴
	 */
	private BigDecimal managerSubsidy;
	
	private BigDecimal reagWage;
	private BigDecimal wageInBoc;
	
	private BigDecimal wageInOther;
	//其他补贴
	private BigDecimal OtherSubsidy;
	//其他补扣
	private BigDecimal OtherDC;
	//迟到扣款
	private BigDecimal lateCharge;
	//个人所得税
	private BigDecimal personIncomeTax;
	//社保
	private BigDecimal socialSecurityFund;
	//公积金
	private BigDecimal housingFund;
	
	private Status status;
	public Status getStatus() {
		return status;
	}
	public void setStatus(Status status) {
		this.status = status;
	}
	public int getIndex() {
		return index;
	}
	public void setIndex(int index) {
		this.index = index;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getEmail() {
		if(email.contains("@"))
			return email;
		else
			return email+EMAIL_SUFFIX;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public BigDecimal getBasicWage() {
		return basicWage;
	}
	public void setBasicWage(BigDecimal basicWage) {
		this.basicWage = basicWage;
	}
	public BigDecimal getBasicBonus() {
		return basicBonus;
	}
	public void setBasicBonus(BigDecimal basicBonus) {
		this.basicBonus = basicBonus;
	}
	public BigDecimal getOutSubsidy() {
		return outSubsidy;
	}
	public void setOutSubsidy(BigDecimal outSubsidy) {
		this.outSubsidy = outSubsidy;
	}
	public BigDecimal getLunchSubsidy() {
		return lunchSubsidy;
	}
	public void setLunchSubsidy(BigDecimal lunchSubsidy) {
		this.lunchSubsidy = lunchSubsidy;
	}
	public BigDecimal getDinnerSubsidy() {
		return dinnerSubsidy;
	}
	public void setDinnerSubsidy(BigDecimal dinnerSubsidy) {
		this.dinnerSubsidy = dinnerSubsidy;
	}
	public BigDecimal getTrafficSubsidy() {
		return trafficSubsidy;
	}
	public void setTrafficSubsidy(BigDecimal trafficSubsidy) {
		this.trafficSubsidy = trafficSubsidy;
	}
	public BigDecimal getHouseSubsidy() {
		return houseSubsidy;
	}
	public void setHouseSubsidy(BigDecimal houseSubsidy) {
		this.houseSubsidy = houseSubsidy;
	}
	public BigDecimal getTravelSubsidy() {
		return travelSubsidy;
	}
	public void setTravelSubsidy(BigDecimal travelSubsidy) {
		this.travelSubsidy = travelSubsidy;
	}
	public BigDecimal getManagerSubsidy() {
		return managerSubsidy;
	}
	public void setManagerSubsidy(BigDecimal managerSubsidy) {
		this.managerSubsidy = managerSubsidy;
	}
	public BigDecimal getReagWage() {
		return reagWage;
	}
	public void setReagWage(BigDecimal reagWage) {
		this.reagWage = reagWage;
	}
	public BigDecimal getWageInBoc() {
		return wageInBoc;
	}
	public void setWageInBoc(BigDecimal wageInBoc) {
		this.wageInBoc = wageInBoc;
	}
	public BigDecimal getWageInOther() {
		return wageInOther;
	}
	public void setWageInOther(BigDecimal wageInOther) {
		this.wageInOther = wageInOther;
	}
	public BigDecimal getOtherSubsidy() {
		return OtherSubsidy;
	}
	public void setOtherSubsidy(BigDecimal otherSubsidy) {
		OtherSubsidy = otherSubsidy;
	}
	public BigDecimal getOtherDC() {
		return OtherDC;
	}
	public void setOtherDC(BigDecimal otherDC) {
		OtherDC = otherDC;
	}
	public BigDecimal getLateCharge() {
		return lateCharge;
	}
	public void setLateCharge(BigDecimal lateCharge) {
		this.lateCharge = lateCharge;
	}
	public BigDecimal getPersonIncomeTax() {
		return personIncomeTax;
	}
	public void setPersonIncomeTax(BigDecimal personIncomeTax) {
		this.personIncomeTax = personIncomeTax;
	}
	public BigDecimal getSocialSecurityFund() {
		return socialSecurityFund;
	}
	public void setSocialSecurityFund(BigDecimal socialSecurityFund) {
		this.socialSecurityFund = socialSecurityFund;
	}
	public BigDecimal getHousingFund() {
		return housingFund;
	}
	public void setHousingFund(BigDecimal housingFund) {
		this.housingFund = housingFund;
	}
	public static String getEMAIL_SUFFIX() {
		return EMAIL_SUFFIX;
	}

	
}
